package com.wanmait.houlang.mapper;

import com.wanmait.houlang.pojo.*;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface EnrollmentScheduleMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(EnrollmentSchedule record);

    int insertSelective(EnrollmentSchedule record);

    EnrollmentSchedule selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(EnrollmentSchedule record);

    int updateByPrimaryKey(EnrollmentSchedule record);

    //通过学校ID找招生计划表
    List<EnrollmentSchedule> findESBySchoolId(Integer id);

    //通过下拉列表框的条件找招生计划表
    List<EnrollmentSchedule> findByCondition(@Param("dto") DTO dto);

    //录取批次下拉列表框
    List<AdmissionsBatch> findAllAdmissionsBatch(Integer yid,Integer gtid);

}